home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
qbbs
/
xfd_v301.zip
/
STRUC201.XFD
< prev
next >
Wrap
Text File
|
1992-05-31
|
4KB
|
73 lines
Structure V 2.01
-----------------
This document will give a description of the internal format of the
FileDoor/DISP-compatible tag-file.
3th party programs (non-DISP programs) can use this structure descrip-
tion to create compatible tag-files that can be accessed by FileDoor
2.xx and higher versions. FileDoor will stay compatible with this
release of the structure until (at least) version 3.01 even if a new
structure is implemented:
A FileDoor/DISP-compatible tag-file <tm> will contain 1 header record
(layout in FDTHea_Lay) and up to 255 data-records (layout in FDTDAT_lay)
The file is a Turbo-PASCAL typed file but can also be created with any
other language. Remember that a Turbo Pascal STRING[xx] is equal to the
structure ARRAY [0..xx] OF CHAR, where element 0 contains the binary
length of used part of the string.
{*****************************************************************************
* Usage : FileDoor/DISP compatible TAG-file *
* Written: 05-01-1991 *
* Author : R.W. van Hoeven *
* Updates: V 2.01 05-01-1991 Changes: *
* - New *
*****************************************************************************}
FDTHea_Lay=RECORD
FDT_ID :STRING[8];
FDTAut :BOOLEAN;
FDTNam :STRING[40];
FDTPrg :STRING[8];
FDTDes :STRING[40];
END;
FDTDat_Lay=RECORD
FDTFil :STRING[12];
FDTCom :STRING[87];
END;
Header.FDT_ID must contain FDTAG201
Header.FDTAut is set to TRUE if the file is an AUTOLOAD tag-file
otherwise it is set to FALSE;
Header.FDTNam must contain the user-name as passed by the BBS;
Header.FDTPrg is the name of the door that changed the file last;
Header.FDTDes is a description that can be added by the door that
has created the file. This comment is showed to the
user in FileDoor (download);
Data__.FDTFil is the name of the file (filename.ext format) that is
added to the tag-file.
Data__.FDTCom is not used yet. It will be used for the directory
where the program is stored. Don't use this entry
yet.
At any given time there can be only ONE tag-file for a certain BBS
line. The door must check if there is already a tag-file for that
users and if so must act upon it (append to it or ask the user if
it can be deleted or not and if not, terminate door).
The filename is fixed to BBSTAGFL.lll where lll is the BBS-linenumber
without leading zeros. So BBSTAGFL.1 for line 1, BBSTAGFL.21 for line
21 and so on.
If a door appends to a tag-file, the door must change Header.FDTNam
(and optionally Header.FDTDes). If Header.FDTAut is set, it is good
practise to leave it on. If it is off, you can set it to on. FileDoor
3.01 will set it to X'FF' when the user used the tag-file and started a
download. So make it good practice to check for X'FF' first (you can
then delete the tag-file) and if not X'FF' test for TRUE or FALSE.